package com.tencent.stat.event;

import android.content.Context;
import com.tencent.stat.StatSpecifyReportedInfo;
import com.tencent.stat.common.DeviceInfo;
import com.tencent.stat.common.StatCommonHelper;
import com.tencent.stat.common.a;
import org.json.JSONObject;

public class k extends e
{
  private a a;
  private JSONObject m = null;

  public k(Context paramContext, int paramInt, JSONObject paramJSONObject, StatSpecifyReportedInfo paramStatSpecifyReportedInfo)
  {
    super(paramContext, paramInt, paramStatSpecifyReportedInfo);
    this.a = new a(paramContext);
    this.m = paramJSONObject;
  }

  public EventType a()
  {
    return EventType.SESSION_ENV;
  }

  public boolean a(JSONObject paramJSONObject)
  {
    if (this.e != null)
      paramJSONObject.put("ut", this.e.getUserType());
    if (this.m != null)
      paramJSONObject.put("cfg", this.m);
    if (StatCommonHelper.needCheckTime(this.l))
      paramJSONObject.put("ncts", 1);
    this.a.a(paramJSONObject, null);
    return true;
  }
}